<div align="center">

    <form>

    </form>
</div>
<?php
echo greengar_opinions_count_interest(NULL);
echo "<br>";
$interestEntities = greengar_opinions_get_interest(NULL);
foreach ($interestEntities as $interestEntity) {
    echo elgg_view_entity($interestEntity);
    //$form_body = "<p>This is my form</p>";\
    $form_body = '';
    $form_body .= elgg_view('input/hidden', array('internalname' => 'object_guid', 'value' => $interestEntity->getGUID()));
    $form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => 'Mark as abused'));
    
    echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$CONFIG->url}actions/greengar/opinions/report"));
}
?>
